package org.example.service.impl;

import jakarta.annotation.Resource;
import org.example.mapper.TasksAnalyzeMapper;
import org.example.pojo.Task;
import org.example.service.TasksAnalyzeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TasksAnalyzeServiceImpl implements TasksAnalyzeService {
    @Resource
    private TasksAnalyzeMapper mapper;

    @Override
    public List<Task> getTaskTodayList() {
        List<Task> taskTodayList = mapper.findTaskTodayList();
        return taskTodayList;
    }

    @Override
    public List<Integer> getTaskCategory() {
        List<Integer> taskCategory = mapper.getTaskCategory();
        return taskCategory;
    }

    @Override
    public List<Integer> getTaskRating() {
        List<Integer> taskRating = mapper.getTaskRating();
        return taskRating;
    }
}
